import axios from "../../utils/axios";

// 管理系统登录
// http://121.89.205.189:3000/admin/admin/login

export const getshopname = () => {
    const url = "http://121.89.205.189:3000/admin/pro/getCategory";
    return axios.get(url)

}
export const getshoplist = (count, limitNum) => {
    const url = `http://121.89.205.189:3000/admin/pro/list?count=${count}&limitNum=${limitNum}`;
    return axios.get(url)

}
export const getmiaosha = (type, flag) => {
    const url = "http://121.89.205.189:3000/admin/pro/showdata";
    return axios.get(url, { type, flag })

}
export const getcontent = (proid) => {
    const url = "http://121.89.205.189:3000/admin/pro/detail";
    return axios.post(url, { proid })

}
export const putmiaosha = (proid, type, flag) => {
    const url = "http://121.89.205.189:3000/admin/pro/updateFlag";
    return axios.post(url, { proid, type, flag })
}
export const searchshop = (category,search) => {
    const url = "http://121.89.205.189:3000/admin/pro/searchPro";
    return axios.post(url, { category,search})

}